.chatbot-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
    padding: 20px;
    box-sizing: border-box;
}

.chat-header {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chat-logo {
    height: 100px;
    margin-right: 10px;
}

.breadcrumb {
    color: #888;
    font-size: 14px;
}

.chatbox {
    background-color: white;
    width: 100%;
    /* max-width: 600px; */
    height: 60vh;
    border-radius: 10px;
    overflow-y: scroll;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-container {
    display: flex;
    align-items: flex-start;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.message {
    max-width: 90%;
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    margin: 5px 0;
    white-space: pre-wrap;
}

.message.user {
    align-self: flex-end;
    background-color: #6c63ff;
    color: white;
    order: 2;
}

.message.ai {
    align-self: flex-start;
    background-color: #e6e6e6;
    color: black;
}

.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* max-width: 600px; */
    margin-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

/* input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    margin-right: 10px;
} */

button {
    background-color: #6c63ff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover {
    background-color: #5548c8;
}

button:active {
    background-color: #41359d;
}

.clickable-topic {
    cursor: pointer; /* 改变鼠标指针 */
    text-decoration: underline; /* 添加下划线 */
}

.clickable-topic:hover {
    background-color: #f0f0f0; /* 悬停时的背景颜色 */
    color: #0056b3; /* 悬停时的文字颜色 */
}

.markdown-container {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5; /* 调低行高 */
    color: #374151;
    max-width: 98%;
    margin: 0 auto;
    padding: 1rem;
}

/* 标题优化 */
.markdown-container h1,
.markdown-container h2,
.markdown-container h3 {
    line-height: 1.3;
    margin: 1.2em 0 0.6em;
    font-weight: 600;
    color: #111827;
}

.markdown-container h1 { font-size: 1.8em; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5em; }
.markdown-container h2 { font-size: 1.5em; }
.markdown-container h3 { font-size: 1.3em; color: #4b5563; }

/* 段落优化 */
.markdown-container p {
    margin: 0.8em 0;
    line-height: 1.6;
}

/* 列表优化 */
.markdown-container ul,
.markdown-container ol {
    margin: 0.6em 0;
    padding-left: 1.8em;
}

.markdown-container li {
    margin: 0.4em 0;
    padding-left: 0.4em;
}

/* 嵌套列表 */
.markdown-container li > ul,
.markdown-container li > ol {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

/* 步骤说明样式 */
.markdown-container ol {
    counter-reset: step-counter;
    padding-left: 1.2em;
}

.markdown-container ol > li {
    counter-increment: step-counter;
    margin: 0.8em 0;
    padding-left: 1em;
}

.markdown-container ol > li::before {
    content: counter(step-counter) ".";
    font-weight: 600;
    color: #3b82f6;
    margin-right: 0.8em;
}

/* 代码块优化 */
.markdown-container code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background-color: #f8fafc;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: #dc2626;
}

.markdown-container pre {
    background-color: #f8fafc;
    padding: 1.2em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.2em 0;
    line-height: 1.4;
    border: 1px solid #e5e7eb;
}

/* 伪表格样式 */
.markdown-container pre[data-table] {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 1em;
    white-space: pre-wrap;
    font-family: monospace;
    color: #374151;
}

/* 分隔线样式 */
.markdown-container hr {
    border: 0;
    height: 1px;
    background-color: #e5e7eb;
    margin: 1.5em 0;
}

/* 注意事项特殊样式 */
.markdown-container h3 + ul {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1em 1.5em;
    border-radius: 6px;
    margin: 1em 0;
}

.markdown-container h3 + ul li {
    margin: 0.6em 0;
    color: #78350f;
}
